/**
 * 文件表格样式
 */
.file-table {
  .file-name-header {
    display: flex;
    align-items: center;
    gap: 8px;

    .ant-checkbox-wrapper {
      margin-right: 8px;
    }

    .selected-count {
      color: #999;
      margin-left: 16px;
      font-size: 12px;
    }
  }

  .file-name-cell {
    display: flex;
    align-items: center;
    gap: 8px;

    .ant-checkbox-wrapper {
      margin-right: 8px;
    }

    .file-name-content {
      display: flex;
      align-items: center;
      gap: 8px;
      flex: 1;
      cursor: pointer;
      padding: 4px;
      border-radius: 4px;
      transition: background-color 0.2s ease;

      &:hover {
        background-color: #f5f5f5;
      }

      &.disabled {
        cursor: not-allowed;
        opacity: 0.6;
      }

      &.editing {
        background-color: #e6f7ff;
      }

      .folder-icon,
      .image-icon,
      .audio-icon,
      .video-icon,
      .document-icon,
      .plant-icon,
      .file-icon {
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
      }

      .file-name-text {
        color: #333;
        flex: 1;
      }

      .file-actions {
        display: flex;
        align-items: center;
        gap: 4px;
        opacity: 0;
        transition: opacity 0.2s ease;

        .ant-btn-link {
          padding: 4px 8px;
          height: auto;
          
          &.disabled {
            opacity: 0.5;
            cursor: not-allowed;
          }
        }
      }

      &:hover .file-actions {
        opacity: 1;
      }
    }
  }

  .ant-table {
    .ant-table-thead > tr > th {
      background: #fafafa;
      font-weight: normal;
      color: #666;
      border-bottom: 1px solid #f0f0f0;
    }

    .ant-table-tbody > tr {
      &:hover {
        background-color: #f5f5f5;
      }

      td {
        border-bottom: 1px solid #f0f0f0;
      }
    }
  }
}
